package com.faneui.transfer.gateway.vo.resp;

import io.swagger.annotations.ApiModelProperty;

public class BaseResp {

	@ApiModelProperty(value = "消息")
	protected String msg = "操作成功";

	@ApiModelProperty(value = "总页数")
	protected Integer pages = 0;

	@ApiModelProperty(value = "总记录数")
	protected Long total = 0l;

	@ApiModelProperty(value = "是否成功，以此判定此次业务请求是否正常")
	protected boolean success = true;

	@ApiModelProperty(value = "时间戳，服务器时间")
	protected String timeStamp = System.currentTimeMillis() + "";

	public BaseResp() {
	}

	public BaseResp(String msg, Integer pages, boolean success) {
		this.msg = msg;
		this.pages = pages;
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}

	public Integer getPages() {
		return pages;
	}

	public void setPages(Integer pages) {
		this.pages = pages;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	@Override
	public String toString() {
		return "BaseResp [msg=" + msg + ", pages=" + pages + ", total=" + total + ", success=" + success
				+ ", timeStamp=" + timeStamp + "]";
	}

}
